package rhinestone.Model;

import java.io.Serializable;

/**
 * A super class of Product and Machinery.
 *
 * @author Group 2
 * @version 2010.12.16
 */
public class Item implements Serializable {
	protected String barcode;
	protected String name;
	protected String description;
	protected double price;

	/**
	 * Constructor.
	 *
	 * Parameters are self-talking I guess.
	 * @param barcode
	 * @param name
	 * @param description
	 * @param price
	 */
	protected Item(String barcode, String name, String description, double price) {
		this.barcode = barcode;
		this.name = name;
		this.description = description;
		this.price = price;
	}

	/**
	 * Getters and setters.
	 */
	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}
	public String getBarcode() {
		return barcode;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	public String getDescription() {
		return description;
	}

	public void setPrice(double price) {
		this.price = price;
	}
	public double getPrice() {
		return price;
	}
}
